<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.word.manage_word}</h3>
        <ul class="tab1">
            <li  class="current"><a href="__URL__/wordList"><span>{$Think.lang.word.all_word}</span></a></li>
            <li><a href="__URL__/importWord"><span>{$Think.lang.word.import_word}</span></a></li>
            <li><a href="__URL__/exportWord"><span>{$Think.lang.word.export_word}</span></a></li>
        </ul>
    </div>
    <p class="tips">{$Think.lang.word.manage_word_tips}</p>
    <form name="cpform" method="post" action="__URL__/manageWord" id="cpform">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2 fixpadding">
        <tr>
            <th width="10%">{$Think.lang.id}</th>
            <th width="25%">{$Think.lang.word.word_search}</th>
            <th>{$Think.lang.word.word_replace}</th>
            <th width="10%">{$Think.lang.mark}</th>
        </tr>
        <volist name="wordList" id="vo">
        <tr>
            <td>{$vo.word_id}</td>
            <td class="td24"><input type="text" class="txt" name="word[{$vo.word_id}]" value="{$vo.word}" /></td>
            <td class="td24"><input type="text" class="txt" name="replacement[{$vo.word_id}]" value="{$vo.replacement}" /></td>
            <td><input type="checkbox" class="checkbox" name="mods[]" value="{$vo.word_id}" /></td>
        </tr>
        </volist>
        <tr>
            <td>{$Think.lang.word.add_word}:</td>
            <td class="td24"><input type="text" class="txt" name="new_word" value="" /></td>
            <td class="td24"><input type="text" class="txt" name="new_replacement" value="" /></td>
            <td></td>
        </tr>
        <tr class="nobg">
            <td colspan="3">
                <div class="cuspages left"><div class="pages">{$pagination}</div></div>
                <div class="fixsel right"><input type="submit" class="btn" name="modsumbit" value="{$Think.lang.submit}" /></div>
            </td>
            <td><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'mods')" /><label for="chkall">{$Think.lang.delete}?</label></td>
        </tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
